/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';
@import '../motion/index.less';

@chart-prefix-cls: ~'@{css-prefix}chart';

.hui-chart {
  position: relative;
  height: 100%;
}

.@{chart-prefix-cls} {
  .inject-ChartCore-vars();

  &-data-empty {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--tv-ChartCore-data-empty-bg-color);
    color: var(--tv-ChartCore-data-empty-text-color);
    font-size: var(--tv-ChartCore-data-empty-font-size);
  }

  &-component-loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--tv-ChartCore-data-empty-bg-color);

    .circular {
      width: 42px;
      height: 42px;
      animation: rotate-spin var(--tv-motion-rotate-speed) linear infinite;
    }

    .path {
      animation: stroke-dash-loop var(--tv-motion-stroke-speed) ease-in-out infinite;
      stroke-dasharray: 90, 150;
      stroke-dashoffset: 0;
      stroke-width: 2;
      stroke: #20a0ff;
      stroke-linecap: round;
    }
  }

  &-mask-status {
    filter: blur(1px);
  }
}
